package com.wzh.design.newDesignPattern.observerPattern;

public class OctalObserver extends Observer{
 
   public OctalObserver(Student student){
      this.student = student;
      this.student.attach(this);
   }
 
   @Override
   public void update() {
     System.out.println( "Octal String: " 
     + Integer.toOctalString( student.getState() ) );
   }
}